import { NgModule } from '@angular/core';
import zh from '@angular/common/locales/zh';
import { NZ_I18N, zh_CN } from 'ng-zorro-antd/i18n';
import { RouteReuseStrategy } from '@angular/router';
import { SimpleReuseStrategy } from './services/common/reuse-strategy.service';
import { CommonModule, DOCUMENT, registerLocaleData } from '@angular/common';
import { ScrollService } from './services/common/scroll.service';

registerLocaleData(zh);
@NgModule({
  declarations: [],
  providers: [
    { provide: RouteReuseStrategy, useClass: SimpleReuseStrategy, deps: [DOCUMENT, ScrollService] },
    { provide: NZ_I18N, useValue: zh_CN }
  ],
  imports: [
    CommonModule
  ]
})
export class CoreModule { }
